ACLOCAL_AMFLAGS = -I m4

#src/makefile.am
lib_LTLIBRARIES = libtinyxml.la

# SVN version
svn_rev = $(SVN_REVISION_NO)


# CPP Flags
cpp_common_flags = -DTIXML_USE_STL -g -O2 -ggdb3 -Wall -Wshadow -Werror -Wno-deprecated -Wno-deprecated-declarations -fPIC
lib_flags = -Wl,--no-undefined

# library header files are spread at several directories
INCLUDE_DIR=-I$(top_srcdir)/include

cpp_common_flags += $(INCLUDE_DIR)


#opcd_object sources
libtinyxml_la_SOURCES = \
	include/tinystr.h \
	include/tinyxml.h \
	src/tinystr.cpp \
	src/tinyxml.cpp \
	src/tinyxmlerror.cpp \
	src/tinyxmlparser.cpp


# libtinyxml.so - current[:revision[:age]]
libtinyxml_la_CPPFLAGS = $(cpp_common_flags)
libtinyxml_la_LDFLAGS  = -version-info 1:$(svn_rev):0 -no-undefined $(lib_flags)

# ---------------------------------------------------------

# SVN version, snd EXTRA_DIST of cached SVN info file.
EXTRA_DIST = svn.info autogen.sh 
dist-hook:
	$(SVN_REDISTR_COMMAND)
	
## -------------------
#  install header files
## -------------------

include_tinyxmldir=$(includedir)/tinyxml/
include_tinyxml_HEADERS =  include/*.h


